package com.zhongfl.crm.lixiao.mapper;

import com.zhongfl.crm.model.boss.WarrantWorkOrderAttachment;
import com.zhongfl.crm.model.boss.WarrantWorkOrderDetail;
import com.zhongfl.crm.model.boss.WorkOrderQuery;

import java.util.List;


/**
 * tb_order
 * Created by wangkun23 on 2018/1/17.
 */
public interface WarrantMapper {

    /**
     * 根据条件查询工单
     *
     * @param workOrderQuery
     * @return
     */
    List<WarrantWorkOrderDetail> queryWarrantWorkOrder(WorkOrderQuery workOrderQuery);

    /**
     * 根据工单号查找权证信息
     * @param workOrderNo
     * @return
     */
    List<WarrantWorkOrderAttachment> selectByWorkOrderNo(String workOrderNo);

    /**
     * 上传权证图片
     * @param
     * @return
     */
    void insertWarrantAttachment(WarrantWorkOrderAttachment warrantWorkOrderAttachment);

    /**
     * 刪除圖片
     * @param id
     */
    int deleteAttachment(Integer id);
}